<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%>
<html>
<body class="easyui-layout list_body">
	<form id="bankCardInfoForm" name="bankCardInfoForm">
		<div class="list_body_north" data-options="region:'north'" border="false">
			<!-- 查询表单 -->
			<div style="padding: 3px" class="easyui-panel datagrid-toolbar">
				<div>
					<span>会员编号:</span>
					<input type="text" id="custom_no" name="custom_no" class="easyui-textbox"/>
					<span>手机号:</span>
					<input type="text" id="phone" name="phone" class="easyui-textbox"/> 
					<span>会员名称:</span>
					<input type="text" id="name" name="name" class="easyui-textbox"/> 
					<span>联行号:</span>
					<input type="text" id="settle_bank_no" name="settle_bank_no" class="easyui-textbox"/>
					<span>卡类型:</span> 
					<code:codeSelect name="account_attr" id="account_attr" code_type="CARD_TYPE" showSelect="true"></code:codeSelect>
					<br/> 
					<span>卡号:</span> 
					<input type="text" id="settle_acct" name="settle_acct" class="easyui-textbox"  /> 
					<span>卡审核状态:</span>
					<code:codeSelect name="audit_st" id="audit_st" code_type="AUDIT_ST" showSelect="true"></code:codeSelect>
					<a href="#" class="easyui-linkbutton btn" iconCls="icon-search" onclick="doSearch()">查询</a>
					<a href="#" class="easyui-linkbutton btn" iconCls="icon-reload" onclick="resetForm()">重置</a>
				</div>
			</div>
			<jiepos:buttonOperateTag menuCode="${menuCode }"></jiepos:buttonOperateTag>
		</div>
		<div data-options="region:'center'" border="false" class="list_body_center">
			<!-- 表格 -->
			<table id="memBankcardInfoTableId" fit="true"></table>
		</div>
	</form>
</body>
<script type="text/javascript">
	var grid;
	$(function() {
		/*加载表格数据*/
		grid = $("#memBankcardInfoTableId").jpgrid({
			url : "getCustomBankcardListJson.do",
			columns : [ {
				title : "会员编号",
				field : "CUSTOM_NO",
				align : 'center'
			}, {
				title : "会员名称",
				field : "CUSTOM_NAME",
				align : 'center'
			}, {
				title : "发卡行",
				field : "SUPER_BANK_NO",
				align : 'center',
				width : '350px'
			}, {
				title : "发卡行网点名称",
				field : "SETTLE_BANK_NO",
				align : 'center',
				width : '350px'
			}, {
				title : "卡类型",
				field : "ACCOUNT_ATTR",
				align : 'center'
			}, {
				title : "卡号",
				field : "SETTLE_ACCT",
				align : 'center'
			},
			{
				title : "卡审核状态",
				field : "AUDIT_ST",
				align : 'center'
			}]
		});
	});

	function doSearch() {
		grid.load({
			phone : $('#phone').val(),
			name : $('#name').val(),
			custom_no : $('#custom_no').val(),
			settle_bank_no : $('#settle_bank_no').val(),
			account_attr : $('#account_attr').val(),
			settle_acct : $('#settle_acct').val(),
			audit_st : $("#audit_st").val(),
		});
	}

</script>
</html>
